<%inherit file="framework.html"/>
    <div id="container-main">
        <h2>Profile of ${c.userUsername}</h2>
        <table cellpadding="0" cellspacing="0" id="user-overview">
            <tr>
                <th>Name</th>
            </tr>
            <tr>
                <td>${c.userRealname}</td>
            </tr>
            <tr>
                <th>E-mail</th>
            </tr>
            <tr>
                <td>${c.userEmail}</td>
            </tr>
        </table>
    </div>
    <div id="container-supplymentary">
        <h3>Options</h3>
        % if c.isAdminAccess:
        <div id="user-delete">
            <h4>Warning</h4>
            <p>
                You are about to remove this user from the service
                permanently. This is an irreversible operation. Are you
                seriously sure?
            </p>
            <form method="post" action="${c.app_base}/users/${c.userUsername}">
                <input type="hidden" name="_method" value="delete" />
                <button type="submit">Yes</button>
                <button type="reset">No</button>
            </form>
        </div>
        % endif
        <ul>
            % if c.isEditable:
            <li><a href="${c.app_base}/users/${c.userUsername}/edit">Edit profile or change password</a></li>
            % endif
            % if c.isAdminAccess:
            <li>
                <a id="a-user-delete">Delete this account</a>
            </li>
            <li><a href="${c.app_base}/users${c.q}">Go back to the list</a></li>
            % else:
            <li><a href="${c.app_base}/">Go back to the application</a></li>
            % endif
        </ul>
    </div>